using Avalonia.Controls;
using Avalonia.Interactivity;
using Avalonia.Platform;
using KinonekoSoftware.Extensions.Ioc;
using KinonekoSoftware.Foundation.Platform;
using KinonekoSoftware.Foundation.UI.Core;
using KinonekoSoftware.Platform;
using KinonekoSoftware.Platform.Controls;
using KinonekoSoftware.Studio.ViewModels;

namespace KinonekoSoftware.Studio
{
    public partial class MainWindow : TabbedWindow
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        protected override void OnLoaded(RoutedEventArgs e)
        {

            var vm = Ioc.Get<AppViewModel>();
            var ds = Ioc.Get<IDialogServiceAmbient>();


            
            //
            //
            ds.SetHost(DialogHost);
            vm.SetHost(ContentHost);
            
            
            base.OnLoaded(e);
        }
    }
}